﻿@{
    ViewBag.Title = "编辑公众账户";
}
@model DTcms.Model.weixin_account
<form id="form1" class="layui-form" url="AccountSave?action=@ViewBag.action&id=@ViewBag.id">
    @Html.AntiForgeryToken()
    <!--导航栏-->
    <div class="pageheader">
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <li><a href="../weixin/account_list" class="back"><i class="fa fa-mail-reply-all"></i> 返回列表页</a></li>
                <li><a href="javascript:;"><i class="iconfont icon-home1"></i> 首页</a> </li>
                <li><a href="javascript:;">应用管理</a> </li>
                <li><a href="javascript:;">微信管理</a> </li>
                <li><a href="javascript:;">编辑公众账户</a> </li>
            </ul>
        </div>
    </div>
    <!--/导航栏-->
    <!--内容-->
    <div class="layui-fluid">
        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title" id="floatHead">
                <li class="layui-this">公众账户信息</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div class="layui-form-item">
                        <label class="layui-form-label">公众号名称</label>
                        <div class="layui-input-block">
                            @Html.TextBox("name", Model.name, new { @class = "input normal", datatype = "s2-100", sucmsg = " " })
                            <span class="Validform_checktip">*公众平台账号名称。</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">公众号原始ID</label>
                        <div class="layui-input-block">
                            @Html.TextBox("originalid", Model.originalid, new { @class = "input normal", datatype = "s1-50", sucmsg = " " })
                            <span class="Validform_checktip">*公众平台账号原始ID。</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">公众平台微信号</label>
                        <div class="layui-input-block">
                            @Html.TextBox("wxcode", Model.wxcode, new { @class = "input normal", datatype = "s1-50", sucmsg = " " })
                            <span class="Validform_checktip">*公众平台微信号。</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">ToKen</label>
                        <div class="layui-input-block">
                            @Html.TextBox("token", Model.token, new { @class = "input normal", datatype = "*", sucmsg = " " })
                            <span class="Validform_checktip">*ToKen值必须与公众平台对应。</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">AppId</label>
                        <div class="layui-input-block">
                            @Html.TextBox("appid", Model.appid, new { @class = "input normal", datatype = "*", sucmsg = " " })
                            <span class="Validform_checktip">*非必填，仅用于高级接口。</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">AppSecret</label>
                        <div class="layui-input-block">
                            @Html.TextBox("appsecret", Model.appsecret, new { @class = "input normal", datatype = "*", sucmsg = " " })
                            <span class="Validform_checktip">*非必填，仅用于高级接口。</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">内容推送</label>
                        <div class="layui-input-block">
                            @Html.CheckBox("is_push", Model.is_push == 1, new { title = "是" })
                            <span class="Validform_checktip">*网站内容推送至微信(备用)</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">排序数字</label>
                        <div class="layui-input-block">
                            @Html.TextBox("sort_id", Model.sort_id, new { @class = "input small", datatype = "n", sucmsg = " " })
                            <span class="Validform_checktip">*数字，越小越向前</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--/内容-->
    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-wrap">
            <button class="layui-btn icon-btn" id="btnSubmit"><i class="layui-icon layui-icon-ok"></i>提交保存</button>
            <input name="btnReturn" type="button" value="返回上一页" class="layui-btn layui-btn-warm" onclick="javascript: history.back(-1);" />
        </div>
    </div>
    <!--/工具栏-->
</form>
@section Scripts{
    <script type="text/javascript">
        layui.use(['validform', 'element', 'jqueryform'], function () {
            //初始化表单验证
            $("#form1").initValidform('#btnSubmit', 1);
        });
    </script>
}